#include <iostream>

using namespace std;

int main(int argc, char const *argv[])
{
    string answer = "Watson";
    string response;
    int count = 1;
    int attemptLimit = 3;

    cout << "Let's play a matching game!" << endl;
    cout << "What was the name of the computer ";
    cout << "that played Jeopardy? : ";

    while (count <= attemptLimit)
    {
        getline (cin, response);
        if (response == answer)
        {
            cout << "Well done, " << response << " is correct!" << endl;
            return 0;
        }
        else
        {
            ++count;
            cout << "Try again. ";
        }
    }

    cout << "Too many incorrect attempts." << endl;


    return 0;
}
